package com.eorchis.module.deptassignedinfo.dao;

import java.util.List;

import com.eorchis.core.basedao.dao.IDaoSupport;
import com.eorchis.module.classdept.ui.commond.ClassDeptValidCommond;
import com.eorchis.module.deptassignedinfo.domain.DepAssigneInfoQueryBean;
import com.eorchis.module.deptassignedinfo.domain.DeptAssignedInfoBean;
import com.eorchis.module.deptassignedinfo.ui.commond.DeptAssignedInfoQueryCommond;
import com.eorchis.module.deptassignedinfo.ui.commond.DeptAssignedInfoValidCommond;

/**
 * Title: IDeptAssignedInfoDao<br>
 * Description: 单位年度参学名额表数据接口<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author Administrator
 * @createDate 2014-12-29
 * @version $Revision$
 */
public interface IDeptAssignedInfoDao extends IDaoSupport{
	/**
	 * 查询分配参学名额列表
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author NingSS
	 * @date 2014-12-29
	 */
	public List<DeptAssignedInfoBean> findDeptAssignedInfoList(DeptAssignedInfoQueryCommond queryCommond) throws Exception;
	/**
	 * 修改分配参学名额列表上的限定人数
	 * @param validCommond
	 * @return
	 * @throws Exception
	 * @author NingSS
	 * @createDate 2014-12-30
	 */
	public boolean updateDeptAssignedInfo(DeptAssignedInfoValidCommond validCommond) throws Exception;
	/**
	 * 分配参学名额:未选单位列表
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author NingSS
	 * @date 2014-12-30
	 */
	public List<DeptAssignedInfoBean> findNoSelectSignupDeptList(DeptAssignedInfoQueryCommond queryCommond) throws Exception;
	/**
	 * 根据部门ids查询部门中参加培训的人数
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author NingSS
	 * @date 2014-12-31
	 */
	public Long getCountJoinTrainingClassUser(DeptAssignedInfoQueryCommond queryCommond) throws Exception;
	Integer getNumByYearAndDept(String searchDepId, String searchClassType,
			String searchYear) throws Exception;
	void updateClassDeptNum(ClassDeptValidCommond vCommond) throws Exception;
	/**
	 * 查询单位年度报名情况
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author Xupp
	 * @date 2014-12-29
	 */
	public int findgfDeptAssignedInfo(DeptAssignedInfoQueryCommond queryCommond) throws Exception;
	/**
	 * 查询单位年度报名情况
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author Xupp
	 * @date 2014-12-29
	 */
	public int findptDeptAssignedInfo(DeptAssignedInfoQueryCommond queryCommond) throws Exception;
	Integer findDeptAssignedNumInfo(DeptAssignedInfoQueryCommond queryCommond)
			throws Exception;
	List<DeptAssignedInfoBean> ExpertDeptAssignedInfoList(
			DeptAssignedInfoQueryCommond queryCommond) throws Exception;
	int findgfDeptAssInfo(DeptAssignedInfoQueryCommond queryCommond)
			throws Exception;
}
